export const getPieOptions = () => ({
  title: {
    text: '{title}',
    left: 'center',
    textStyle: {
      fontSize: 18,
      fontWeight: 'bold',
    },
  },
  tooltip: {
    trigger: 'item',
    formatter: '{a} <br/>{b}: {c} ({d}%)',
    backgroundColor: 'rgba(0, 0, 0, 0.7)',
    borderColor: '#333',
    textStyle: {
      color: '#fff',
    },
  },
  legend: {
    orient: 'horizontal',
    bottom: 0,
    data: [],
    textStyle: {
      fontSize: 12,
    },
  },
  series: [
    {
      name: '{seriesName}',
      type: 'pie',
      radius: ['40%', '70%'],
      avoidLabelOverlap: false,
      itemStyle: {
        borderRadius: 6,
        borderColor: '#fff',
        borderWidth: 2,
      },
      label: {
        show: true,
        formatter: '{b}: {c} ({d}%)',
        fontSize: 12,
      },
      emphasis: {
        label: {
          show: true,
          fontSize: 14,
          fontWeight: 'bold',
        },
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)',
        },
      },
      labelLine: {
        show: true,
      },
      data: [],
    },
  ],
  animation: true,
  animationDuration: 1000,
  animationEasing: 'cubicInOut',
})
